import requests

import config

class Homeapi:
    # 轮播图
    # 专题阑尾
    # 最近新品
    def __init__(self):
        self.carousel_url= config.BASE_URL + "/api/v1/banner/1"
        self.topicField_url = config.BASE_URL + "/api/v1/theme?ids=1,2,3"
        self.newProducts_url = config.BASE_URL + "/api/v1/product/recent"
    def carousel(self):
        return requests.get(url=self.carousel_url)
    def topicField(self):
        return requests.get(url=self.topicField_url)
    def newProducts(self):
        return requests.get(url=self.newProducts_url)